
import 'file_utils.dart';

class OhosRenameSteps{
  final String newPackageName;
  String? oldPackageName;

  static const String PATH_APP_JSON = "ohos/AppScope/app.json5";

  OhosRenameSteps(this.newPackageName);

  Future<void> process() async {
    print("Running for ohos");


    print('Updating app.json5 file');
    var mText = '"bundleName":"$newPackageName",';
    var mRegex = '("bundleName":.*)';
    await replaceInFileRegex(PATH_APP_JSON, mRegex, mText);
  }
}